Skip to content

Expose builder-like interface for path verification#486

Open
djc wants to merge 7 commits intomainfrom
path-builder
Open

Expose builder-like interface for path verification#486
djc wants to merge 7 commits intomainfrom
path-builder

Conversation

@djc
Copy link
Copy Markdown
Member

@djc djc commented May 3, 2026

Avoids the many-argument verify_for_usage() complexity bottleneck in favor of exposing the underlying ChainOptions directly (under a different name). Should make it easier to evolve this API going forward (as suggested in #485).

@djc djc requested a review from ctz May 3, 2026 13:10
@djc djc force-pushed the path-builder branch from f53ba80 to 7c20605 Compare May 3, 2026 13:11
Comment thread src/verify_cert.rs Outdated
// Use `'a` for lifetimes that we don't care about, `'p` for lifetimes that become a part of
// the `VerifiedPath`.
pub(crate) struct ChainOptions<'a, 'p> {
pub(crate) struct PathBuilder<'a, 'p> {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this is the best name? I wanted to evoke "path building" but maybe that's too jargony and it would be better to stick with "verification" or "verifier" language.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.99%. Comparing base (55a52f3) to head (5e23eeb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #486      +/-   ##
==========================================
+ Coverage   96.97%   96.99%   +0.02%     
==========================================
  Files          20       20              
  Lines        3936     3933       -3     
==========================================
- Hits         3817     3815       -2     
+ Misses        119      118       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@djc djc force-pushed the path-builder branch from 7c20605 to a5ede90 Compare May 3, 2026 13:15
@djc djc requested a review from cpu May 3, 2026 13:16
@djc djc force-pushed the path-builder branch from a5ede90 to 5e23eeb Compare May 3, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant